	var  template = '<div class="modal">'+	
						'<div class="modal-dialog modal-sm">'+
					  		'<div class="modal-content">'+
					  			'<div class="modal-header">'+
					  				'<span class="close" data-dismiss="modal">&times;</span>'+
					  				'<div class="modal-title">'+
					  					'<h4>xxx</h4>'+
					  				'</div>'+
					  			'</div>'+
					  			'<div class="modal-body">'+
					  			'xxxxx'+
					  			'</div>'+
					  			'<div class="modal-footer">'+
					  				'xxxxxx'+
					  			'</div>'+
					  		'</div>'+
					  	'</div>'+
				   	'</div>';
				   	
		var dialog = $(template);
		
 jQuery.extend({
	alert : function(title,content){
		
	},
	confirm : function(title,content){
			dialog.find('.modal-title').html(title);
			dialog.find('.modal-body').html(content);
			var btnsHtml ='<button  id="confirm" class="btn btn-default btn-sm">确定</button>'+
							'<button class="btn btn-default btn-sm" data-dismiss="modal">取消</button>';
			dialog.find('.modal-footer').html(btnsHtml);
			dialog.modal('show');
		
	},
	prompt: function(title,value){
			dialog.find('.modal-title').html(title);
			var content = '<input/>';
			dialog.find('.modal-body').html(content);
			var btnHtml ='<button class="btn btn-default btn-sm" data-dismiss="modal">关闭</button>';
			dialog.find('.modal-footer').html(btnHtml);
			dialog.modal('show');
		}
 });
 
 
 
 
 
 
